<?php
/**
 * CreateUser: zlh
 * CreateTime: 2022/1/28 14:24
 * Remark:
 */

namespace App\Http\Requests\Login;

use App\Http\Requests\BaseRequests;

class LoginLoginPost extends BaseRequests
{

    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'staff_login_account' => "required",
            'staff_login_password' => "required",
            'company_id' => "required",
            "sign" => "required",
            "timestamp" => "required",
        ];
    }

    public function messages()
    {
        return [
            'staff_login_account.required' => "账号不能为空",
            'staff_login_password.required' => "密码不能为空",
            'company_id.required' => "公司不能为空",
            'sign.required' => "签名不能为空",
            'timestamp.required' => "时间不能为空",
        ];
    }


}
